Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add summary for TestDirectory? #2861

Closed
fingolfin opened this issue Sep 24, 2018 · 0 comments
Closed

Add summary for TestDirectory? #2861

fingolfin opened this issue Sep 24, 2018 · 0 comments
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests

Comments

@fingolfin
Copy link
Member

It would be nice if TestDirectory could (optionally?) show how many .tst files it tested, and how many of these had failures resp. passed.

(Bonus points for doing the same for Test, but listing how many gap> lines were read in total, vs. how many produced diffs; and then extra bonus points if TestDirectory was able to display an aggregate of this: Executed N tests files with M input lines in total; X test files produced a total of Y errors or so.)

@fingolfin fingolfin added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests labels Sep 24, 2018
fingolfin added a commit to fingolfin/gap that referenced this issue Oct 5, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         0 ms (0 ms GC) and 53.2KB allocated, 1 failures in 1 out of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves gap-system#2861
fingolfin added a commit to fingolfin/gap that referenced this issue Oct 5, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         0 ms (0 ms GC) and 53.2KB allocated, 1 failures in 1 out of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves gap-system#2861
fingolfin added a commit to fingolfin/gap that referenced this issue Oct 5, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         0 ms (0 ms GC) and 53.2KB allocated, 1 failures in 1 out of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves gap-system#2861
fingolfin added a commit to fingolfin/gap that referenced this issue Oct 9, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         1 ms (0 ms GC) and 53.8KB allocated
                  1 failures in 1 of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves gap-system#2861
ChrisJefferson pushed a commit that referenced this issue Oct 9, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         1 ms (0 ms GC) and 53.8KB allocated
                  1 failures in 1 of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves #2861
fingolfin added a commit that referenced this issue Oct 17, 2018
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         1 ms (0 ms GC) and 53.8KB allocated
                  1 failures in 1 of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves #2861
ssiccha pushed a commit to ssiccha/gap that referenced this issue Mar 27, 2019
With this, you may get output like this, with the
relevant change in the "total" line near the end.

    gap> TestDirectory("misc");
    Architecture: x86_64-apple-darwin15.6.0-default64-kv5

    testing: misc/err.tst
           0 ms (0 ms GC) and 46.6KB allocated for err.tst
    testing: misc/foo.tst
    ########> Diff in misc/foo.tst:3
    # Input is:
    1+1;
    # Expected output:
    3
    # But found:
    2
    ########
           0 ms (0 ms GC) and 6.62KB allocated for foo.tst
    -----------------------------------
    total         1 ms (0 ms GC) and 53.8KB allocated
                  1 failures in 1 of 2 files

    #I  Errors detected while testing

    false
    gap>

Resolves gap-system#2861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: tests issues or PRs related to tests
Projects
None yet
Development

No branches or pull requests

1 participant