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-dir doesn't appear to be working #8

Open
Dids opened this issue Nov 6, 2017 · 2 comments
Open

--test-dir doesn't appear to be working #8

Dids opened this issue Nov 6, 2017 · 2 comments
Assignees

Comments

@Dids
Copy link

Dids commented Nov 6, 2017

Full command/parameters I'm using right now:

muddle --watch-dir ~/.config/hackmud/scripts_dev --test-dir ~/.config/hackmud/scripts_dev/tests --out-dir ~/.config/hackmud/user/scripts

This seems to script tests (named script.test.js) in scripts_dev/tests, but works fine if I move the tests to the same directory where the scripts themselves are, so it's almost like it's not taking --test-dir in to account at all?

If I'm doing something wrong here, let me know, since I'm still struggling trying to get even a simple test to run. :)

Probably not related, but I can't seem to get any further than this when testing:

function (context, args) {
         ^
SyntaxError: Unexpected token (

EDIT: Not sure if it matters, but I don't use TypeScript at all, just JavaScript.

@Dids
Copy link
Author

Dids commented Nov 6, 2017

Don't mind the last comment about the unexpected token. Took me a while to figure out that I was supposed to specifically eval() the temporary script named script.temp.js. Somehow managed to miss that part or figured it was a typo, but glad I was wrong. :)

At any rate, the original issue is still there, where the overriding the test directory doesn't seem to work.

@jcjolley
Copy link
Owner

jcjolley commented Nov 8, 2017

@Dids Interesting on --test-dir. I'll dig in and see if I can spot the issue

Re: eval the temp script
Yeah, I need to make that clear in the README. It's in the sample test file, but making people dig around in my project to find out how to do things is a bit obtuse.

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

No branches or pull requests

2 participants