Skip to content

Commit

Permalink
Testing on different archs and updating test procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Jun 20, 2024
1 parent 16d7fb9 commit e4ff60f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
14 changes: 14 additions & 0 deletions dev/tests/240618.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
webapp

MacOS
- firefox: ok
- safari: freeze at startup
- electron: project set is failing at start, nothing works

Windows
- firefox: ok
- electron: project set is failing at start, nothing works

Linux
- firefox: ok
- electron: ok
32 changes: 18 additions & 14 deletions dev/tests/webapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Should be done in each considered brower and in the electron app, and importantl
Doesn't show up at the time of writing:
- outputs

## Not tested in the procedure


## Test procedure

Expand Down Expand Up @@ -37,45 +39,47 @@ Second level: what to check additionnally
- Change back to Tabular, click Track cursor. click on different rules in the editor to see that it changes in the subpanel; click on previous/next similarly
- export to json and check that info is present in the file
- Go to constraints subpanel, see that the two views domain are populated
- Go to polymers, see that it shows > The size of biomolecular compounds is uniformly boundedG.
- Go to polymers, see that it shows > The size of biomolecular compounds is uniformly bounded.

#### Simulation
#### Simulation, plot
- Add `[T] > 10` in `Pause if`, click on start, see that it showed "running" with events and time, and now Paused
- Click on start, see the simulation doesn't run, delete contents of `Pause if`
- Click on start, then on pause. See that it showed "running" with events and time, and now Paused
- Click on continue, see the simulation doesn't run, delete contents of `Pause if`
- Click on continue, then on pause. See that it showed "running" with events and time, and now Paused
- change to tab log, see that it shows lines with + Building initial simulation conditions... and random seed used
- Change to plot, click on the different plot axes options and see the changes
- Continue/pause the simulation and see the plot changing, move the plot position with the slider
- Export the plot to svg and open it
- Same with csv

#### DIN, snapshots, outputs
- Change to DIN tab, check that a table is populated and that we can switch to the second table
- Export to json and check the file
- Change to Snapshot tab, enter $SNAPSHOT in the Simulation perturbation and click intervention, see that the snapshot shows up
- Click on kappa and change display to graph, play with the graph settings
- Change back to kappa, continue/stop the simulation, make a new snapshot, and test to switch between snapshot
- Change back to kappa, continue/pause the simulation, make a new snapshot, and test to switch between snapshot
- TODO: this currently doesn't work, adapt this when it does : - Go to outputs, run > $PRINT "time: ".[T] and > $PLOTENTRY see that it shows up
- Go back to log tab and see the previous interventions show up
- Click on `All outputs` in the simutation, check that the following files are present and not empty: log.txt, inputs.ka, flux.json, flux.html, data.csv
- Click on `All outputs` in the simutation, check that the following files are present and not empty: log.txt, inputs.ka, flux.json, flux.html, data.csv, snap and snap_xxxxxx

#### Files
- Hit clear to clear up the simulation
- File>export and download the file
- Reload the app, file> open, open back the file
- Reload the app (or close the file), file> open, open back the file
- File> new enter a name as `test.ka`, fill with the contents: https://www.di.ens.fr/~feret/teaching/2023-2024/MPRI.2.19/activities/causality/causality_slide_10.ka
- See the update of the contact map
- Start, start again, pause. See if both file show up on the plot tab
- Close abc.ka
- See the update of the contact map with both
- Start simulation, See if both file show up on the plot tab
- Select file abc.ka, close it

#### Stories
- Click get trace at the bottom and check
- Click get trace at the bottom and check file, json with empty trace
- If not done in previous section, Copy/paste in the editor https://www.di.ens.fr/~feret/teaching/2023-2024/MPRI.2.19/activities/causality/causality_slide_10.ka
- Go to preferences, enable store trace, click Set
- clear/start/pause the simulation
- Click get trace at the bottom and check the file (TODO: reference?)
- clear/start the simulation, it stops because of last `%obs`
- Click get trace at the bottom and check the file contains a non empty trace section (TODO: reference?)
- Go to the stories tab, click launch
- See that the computation log show up, that a story graph appears on the right
- Click on story_info log, see that it shows up
- Change the story, see the log and graph changes
- Change the story, see the story_info log and graph changes
- Test causal and strongly compressed stories the same way

#### New project
Expand Down

0 comments on commit e4ff60f

Please sign in to comment.