jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
258 stars 26 forks source link

Add an integration test that identifies text license contents #20

Closed phrohdoh closed 6 years ago

phrohdoh commented 6 years ago

This is a part of #4.

Adds tests/integration_test.rs which contains a single function which tests 13 different files asserting at least 0.99 confidence.

As you'll see in the code it uses the cache in the cli directory which is less-than-desirable. I am open to improvement suggestions.

I'm terribly sorry this took me so long to open.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

jpeddicord commented 6 years ago

No worries. Thanks again for the contribution!

Ignore build statuses and branch issues -- I'll take care of those and get it going again since I changed the API a bit.

I'm shoring up some things on my end but should be able to merge this real soon.