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

test suites/apps are sprinkled around the repository (and not run) #47

Closed
hannesm opened this issue Nov 24, 2011 · 6 comments
Closed

test suites/apps are sprinkled around the repository (and not run) #47

hannesm opened this issue Nov 24, 2011 · 6 comments
Assignees
Labels

Comments

@hannesm
Copy link
Contributor

hannesm commented Nov 24, 2011

apart from finding a good way where to have those, they should also be run on a regular basis and output compared (addresses #6)

the general idea should be that test suites and test apps (to run the suites) should be part of the specific library they test - and thus live in the same directory (well, a subdirectory)

any comments? carl? peter? bruce?

@ghost ghost assigned cgay Dec 24, 2013
@cgay
Copy link
Member

cgay commented Dec 24, 2013

Sorry, I missed this issue when it was created. I agree, and it's on my list. Assigning to myself.

@cgay
Copy link
Member

cgay commented Mar 1, 2019

The original comment is a bit vague, but I think the "sprinkled around" part of this has been addressed.

I've also changed testworks such that test "apps" are no longer necessary. What I would like to do is to make the workspace-tool find, build, and run tests in any library named .*-test(s|-suite), and put output in a standard location. Not sure the best way to store the results permanently for later comparison; perhaps a git repo. Then running all tests should be just

$ workspace-tool new run-tests --all  # gets all packages, not just opendylan
$ workspace-tool test --all 

and forgetting to add tests to combined test suites / apps will be a thing of the past.

@cgay
Copy link
Member

cgay commented Dec 30, 2019

We're getting closer to this. Currently working on making the existing test suites pass by fixing the simple issues, then by marking long-standing, difficult issues as expected to fail. Then we'll be able to know "if it isn't green, my change broke it."

@cgay
Copy link
Member

cgay commented Feb 28, 2022

Status:

  • I'm considering the "sprinkled around" problem to be solved enough that remaining problems can be addressed one-by-one.
  • I've made a start at GitHub CI with GitHub Action in https://github.com/dylan-lang/install-opendylan. We can close this bug once a workflow is set up to run libraries-test-suite.

@cgay
Copy link
Member

cgay commented Feb 28, 2022

The CI depends on #1373, and fixing #1373 will cause the libraries-test-suite build to fail due to tests like this:

.../opendylan/sources/common-dylan/tests/common-extensions-tests.dylan:154.37-54:
  Serious warning - Reference to undefined binding {this-is-undefined in common-dylan-test-suite}.
                                          -----------------
        assert-signals(<error>, ignorable(this-is-undefined),
                                          -----------------

It looks like its possible to get rid of a few such warnings by tricking the compiler with dynamism. The ones that can't be avoided (like the one above) will need a different solution.

@cgay
Copy link
Member

cgay commented Jun 28, 2023

This is done.

@cgay cgay closed this as completed Jun 28, 2023
cgay pushed a commit to cgay/opendylan that referenced this issue May 8, 2024
Include link to build instructions in the download page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants