Commit Graph

15 Commits

Author SHA1 Message Date
Anna Schumaker f951d4c998 gtk: Add undershoots to the XunitView
Undershoot CSS classes were added in libadwaita 1.4, and look nice when
applied.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-10-06 15:59:43 -04:00
Anna Schumaker daae654b8e gtk: Improvements to the failed test output viewer
I change the icon to a "down" arrow, and update the animation direction
to go up-and-down rather than left-and-right. I also change the button
text to say "done", which is a little clearer than "back".

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-10-06 15:57:24 -04:00
Anna Schumaker 952889687f gtk: Add a MessagesView to the XfstestsView
This is placed in a Gtk.Stack with a nice transition to show the failed
tests log.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-31 15:35:28 -04:00
Anna Schumaker ea2913429c gtk: Create a MessagesView
The MessagesView combines two MessageViews into a split-pane card. This
lets us display stdout and stderr side-by-side to the user so they can
see what is going on. I also add a 'back' button that the user can click
to signal that they are done reviewing the output.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-31 15:34:18 -04:00
Anna Schumaker 5fb9bd6221 gtk: Create a MessageView
The message view will be used to display either stdout or stderr
messages to the user. It has built-in 'diff' detection, and adds nice
colors to the diff output if we are asked to display one.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-31 15:31:09 -04:00
Anna Schumaker 54be8f5ce3 gtk: Give the TestCaseView a show-messages signal
This simply passes on the signal from the underlying factory to be used
in a higher up layer.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-31 13:16:17 -04:00
Anna Schumaker 40b1d1789d gtk: Add the EnvironmentView to the XfstestsView
And set the environment property from the application after creating a
property list.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-29 17:17:34 -04:00
Anna Schumaker f44e064c89 gtk: Create an EnvironmentView
The EnvironmentView is a ColumnView configured to display environment
properties to the user. It doesn't use the firstcol property at all, so
some extra handling of the model property was needed.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-29 17:16:39 -04:00
Anna Schumaker c861c49564 gtk: Add an XunitView base class
The XunitView implements most of the work needed by our various views to
show xfstests results.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-29 15:34:27 -04:00
Anna Schumaker 3dc8179624 gtk: Add a PropertyView to the XfstestsView
And have the application create a PropertyList that is passed to the
View.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-16 10:34:21 -04:00
Anna Schumaker c145a67ae6 gtk: Add a PropertyView
The PropertyView displays the properties of each Xunit added to the
displayed Xfstests run.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-16 10:34:21 -04:00
Anna Schumaker 455d933fc4 gtk: Create a SummaryView
The SummaryView displays a summary of the passed, failed, and skipped
tests for each xunit along with the time it took the xunit to run.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-14 16:06:32 -04:00
Anna Schumaker 8a54cb5d98 gtk: Put the TestResultList behind a TestCaseFilter
And control the filter using the newly-created FilterButtons class. This
lets us hide completely skipped tests by default, since those are mostly
noise. I also add some custom icons used by the buttons to indicate
passed, failed, or skipped tests.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-14 13:41:02 -04:00
Anna Schumaker e0bb2d7be7 gtk: Display TestCase results in the TestCaseView
I use the ResultFactory to do this. I also create a custom css
stylesheet to use for each cell in the Gtk.ColumnView displaying the
results. This lets us add custom colors so we can easily see at a glance
what is failing, passing, or skipped.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-14 13:34:57 -04:00
Anna Schumaker 796cf6eec7 gtk: Create a TestCaseView and XfstestsView
The XfstestsView contains the TestCaseView, and will eventually contain
other views used to display test results and information.

For the moment, the TestCaseView displays the name of the testcases in a
single Xfstests run in a single column. I plan on adding more columns in
the near future.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-14 13:27:22 -04:00