-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Improve: Add test(s) and/or checks #28
Comments
I'd vote for both. The end-to-end test w/ playwright could test whether the LI APIs break with assertions like I'd be happy to set up mocked APIs for unit testing, and I'd be interested to see how end-to-end tests would work. |
Coming back to this, I'm definitely less enthusiastic about the end-to-end browser test. There are just a lot of things that would make that really hard to set up:
But, for API mocking, I think that would be great, and cover the parts of the tool most likely to break with code changes anyways. If you are going to work on them, I would suggest checking out my (WIP) notes on the unofficial API here. |
re: end-to-end browser testing: I took another look through LI's TOS. Turns out they forbid any automated access, so browser testing's out. re: scraping: I think LI's disapproval of this software is near-inevitable.This is not legal advice, but according to the LinkedIn User Agreement, section 8.2 b,
Breaking the TOS might result in devs' accounts getting revoked at worst. That's within my comfort zone, but it might not be within yours. To keep things copacetic with LI, I'd suggest requesting a dev API key that has the re: API mocking: I'm going with |
Yeah, re: TOS, that is why I choose to be very specific in my wording around this project (lol). To be fair, its intended use really is just for users to export their own data (that is why I built it, for my own personal JSON powered resume). I think going down the whole developer API route is not currently worth the trouble, and I'm good with just doing API mocking. I always do a "smoke test" for every release as well, where I sideload a fresh build and test it. I'm good with |
With how often this is needing updates, it would be nice to establish some sort of test or simple check to verify the shape of the output.
This could be something like a real-life integration test with snapshot...
.env
file, extension runs viaplaywright
, JSON Resume output is collected and compared to snapshot... Or, to avoid needing a real LI profile and using real LI endpoints, could mock the LI API
The text was updated successfully, but these errors were encountered: