Skip to content

Commit

Permalink
Try to fix test failing on github
Browse files Browse the repository at this point in the history
dariober committed Aug 3, 2024
1 parent e4c9d3a commit 6944e41
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
New in 1.18.1
New in 1.19.0
=============

* Support for sessions via `session*` commands. Similar to other genome
browsers, ASCIIGenome can save a session to be re-opened later. Sessions are
saved in a yaml file (default `~/.asciigenome/session.yml`) which is a list
of dictionaries (each dictionary is a session). At present, only some basic
configurations are saved and things could change in the future.

Current session* commands, use `<command> -h` for more detail:

* `sessionOpen`

* `sessionSave`

* `sessionList`

* Move ASCIIGenome files and settings to `~/.asciigenome` directory.

* `print` command does not decode the URL escapes for line feed and carriage
return. Decoding `\n` and `\r` would split a gff line when printed.

4 changes: 2 additions & 2 deletions src/test/java/samTextViewer/InteractiveInputTest.java
Original file line number Diff line number Diff line change
@@ -106,13 +106,13 @@ public void canListCurrentSessionNameAndFile()

ProcessInput pi = processInput(ip, "sessionList", proc);
assertTrue(
Pattern.compile("Session file: /.*/.asciigenome/session.yml").matcher(pi.stderr).find());
Pattern.compile("Session file: .*/.asciigenome/session.yml").matcher(pi.stderr).find());
assertTrue(pi.stderr.contains("Current session: n/a"));

ip.processInput("sessionOpen -f test_data/session.yaml no-fastafile", proc);
pi = processInput(ip, "sessionList -f test_data/session.yaml no-fastafile", proc);
assertTrue(
Pattern.compile("Session file: /.*/test_data/session.yaml").matcher(pi.stderr).find());
Pattern.compile("Session file: .*/test_data/session.yaml").matcher(pi.stderr).find());
assertTrue(pi.stderr.contains("Current session: no-fastafile"));
}

0 comments on commit 6944e41

Please sign in to comment.