Skip to content

Update test suite to use real supporting libraries#1316

Merged
paf31 merged 8 commits intopurescript:masterfrom
hdgarrood:update-test-support
Aug 2, 2015
Merged

Update test suite to use real supporting libraries#1316
paf31 merged 8 commits intopurescript:masterfrom
hdgarrood:update-test-support

Conversation

@hdgarrood
Copy link
Copy Markdown
Contributor

  • Use real versions of supporting libraries
  • Use bower to make it easy to update supporting libraries

The reason I did this is that I noticed that some of the tests had started producing warnings, because of type classes with operator members, and I think this might have been interfering with their results. (Investigating now).

* Use real versions of supporting libraries
* Use bower to make it easy to update supporting libraries
@hdgarrood
Copy link
Copy Markdown
Contributor Author

The bower.json for the set of supporting libraries is currently pointing to a specific commit in my fork for purescript-assert. Once purescript/purescript-assert#1 is merged we can point at the normal version.

Descend into type class declarations when searching for declarations to
use for completion, so that type class member functions appear in the
results.
@hdgarrood
Copy link
Copy Markdown
Contributor Author

The CI failure on the "fix psci tests" commit turns out to be a real bug, which was that type class members didn't get completed in psci. I've just fixed this.

@paf31 paf31 added this to the 0.8.0 milestone Jul 29, 2015
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Jul 29, 2015

Looks good but did you mean to check in the flattened directory?

@hdgarrood
Copy link
Copy Markdown
Contributor Author

I did, I was thinking it would be nice to be able to run the tests without needing bower. I don't feel very strongly either way though. Would you rather the tests shelled out to bower at the beginning to get this code?

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Jul 29, 2015

Hmm, I'm not sure. It'd be nice to be able to accept PRs from Haskellers who don't have Bower, I suppose. I'm not sure it's so much more convenient that it's worth all the duplication of code though TBH.

@hdgarrood
Copy link
Copy Markdown
Contributor Author

I don't think PRs are a problem if we don't check it in - if the submitter hasn't set their environment up, it won't matter, because we'll hear from Travis soon after they create the PR. I'll change that, then.

@natefaubion
Copy link
Copy Markdown
Contributor

Does it make sense to pull from master for these repos? I'm thinking if one makes a Prelude change, and it needs to be tested before a release.

@hdgarrood
Copy link
Copy Markdown
Contributor Author

What sort of change are you thinking of? I think the test suites for individual libraries are better equipped to test changes in those libraries, and the tests here should really just be for the compiler.

@natefaubion
Copy link
Copy Markdown
Contributor

I was thinking about the bug wrt to inlining boolean operators. Changes were made to the published Prelude that affected the compiler's optimizations. If we change something like that again, would we want to coordinate and do compiler/library releases at the same time?

@paf31 paf31 removed this from the 0.8.0 milestone Jul 29, 2015
paf31 added a commit that referenced this pull request Aug 2, 2015
Update test suite to use real supporting libraries
@paf31 paf31 merged commit ba3f76f into purescript:master Aug 2, 2015
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Aug 2, 2015

👍 Thanks very much!

@hdgarrood hdgarrood deleted the update-test-support branch August 2, 2015 11:23
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Aug 2, 2015

Something isn't quite right with the tests now, but I'm not sure if it's related to this. Several tests break on my machine, but cabal test is reporting success.

@hdgarrood
Copy link
Copy Markdown
Contributor Author

Perhaps because not all of the instances have been updated? The old Prelude was taken from before all of the operator members had been changed, so for example Eq had a member (==). I was planning on fixing all these in #1323.

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Aug 2, 2015

The code compiles fine with psc though.

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Aug 2, 2015

Also, why would cabal test pass?

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Aug 2, 2015

Ah, had to delete .test_modules. Sorry, never mind...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants