INRIA / INRIA/spoon

chore: add spoon-test to check that spoon works on any repo

Open
#2,724 1 comment 1 reaction 0 assignees View on GitHub
chore
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

I propose to add a script `spoon-test` as follows:

spoon-test https://github.com/google/guava

It would:

* check that the model can be built without any exception (contract inspired from build.sh)
* check that the pretty-printed code can be compiled with any exception (contract inspired from build.sh)
* check that the pretty-printed code passes all the test (contract inspired from build.sh)
* check all contracts on the model (see #2716)

This is basically a rework or extension of `build.sh`. We may consider a clean Python or Groovy version instead of this Shell monster.

Contributor guide

Open the contributing guide

Research direction

Start by reading build.sh and the contract discussion in #2716, then compare the proposed spoon-test checks for model building, pretty-printed compilation, tests, and model contracts. Done means a command like `spoon-test https://github.com/google/guava` runs all four checks without exceptions and reports failures clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java, python, shell
Domain
build-system, testing-qa, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.