Commit Graph

20 Commits

Author SHA1 Message Date
Loïc Hoguin bbfa066d79
Cleanup .gitignore files for the monorepo
We don't need to duplicate so many patterns in so many
files since we have a monorepo (and want to keep it).

If I managed to miss something or remove something that
should stay, please put it back. Note that monorepo-wide
patterns should go in the top-level .gitignore file.
Other .gitignore files are for application or folder-
specific patterns.
2024-06-28 12:00:52 +02:00
Loïc Hoguin 9f15e978b1
make: Remove xrefr
It is no longer used by Erlang.mk.
2024-06-25 13:08:08 +02:00
David Ansari 5bf8192982 Support code coverage
Previously it was not possible to see code coverage for the majority of
test cases: integration tests that create RabbitMQ nodes.
It was only possible to see code coverage for unit tests.
This commit allows to see code coverage for tests that create RabbitMQ
nodes.

The only thing you need to do is setting the `COVER` variable, for example
```
make -C deps/rabbitmq_mqtt ct COVER=1
```
will show you coverage across all tests in the MQTT plugin.

Whenever a RabbitMQ node is started `ct_cover:add_nodes/1` is called.
Contrary to the documentation which states

> To have effect, this function is to be called from init_per_suite/1 (see common_test) before any tests are performed.

I found that it also works in init_per_group/1 or even within the test cases themselves.

Whenever a RabbitMQ node is stopped or killed `ct_cover:remove_nodes/1`
is called to transfer results from the RabbitMQ node to the CT node.

Since the erlang.mk file writes a file called `test/ct.cover.spec`
including the line:
```
{export,".../rabbitmq-server/deps/rabbitmq_mqtt/cover/ct.coverdata"}.
```
results across all test suites will be accumulated in that file.

The accumulated result can be seen through the link `Coverage log` on the test suite result pages.
2022-11-10 15:04:31 +01:00
kjnilsson 62677cbacf
MQTT ra systems changes 2021-03-22 21:44:19 +03:00
Jean-Sébastien Pédron 3af67f744b Git: Ignore copied CLI 2019-12-12 15:00:20 +01:00
Michael Klishin 286e60b08f Ignore IDEA project files 2019-09-19 10:30:20 +03:00
Michael Klishin 729d778d88 Ignore debug/* 2018-01-03 03:30:01 +08:00
Michael Klishin 6f051b7c1c Ignore test/config_schema_SUITE_data/schema/ 2017-04-02 22:13:36 +03:00
Jean-Sébastien Pédron 08c29be1cf java_SUITE: Fetch dependencies using Maven
Thus, we do not use to clone and build org.eclipse.paho.client.mqttv3,
nor we depend on a local clone of rabbitmq-java-client.

While here, move all java_SUITE-specific files to `java_SUITE_data`.
2016-08-31 10:15:21 +02:00
kjnilsson b76cfbe5dc Move to common test
travis config
2016-07-12 12:46:11 +01:00
Jean-Sébastien Pédron 13b49990ed Git: Ignore `xrefr` 2016-06-29 16:50:56 +02:00
Michael Klishin c09578b19d Ignore temp JUnit runner files 2016-03-05 10:58:53 +03:00
Pierre Fenoll 62d865b739 .gitignore: make absolute paths relative 2015-12-30 07:09:01 +03:00
Jean-Sébastien Pédron 8c4b087c7c Git: Ignore testsuite artifacts 2015-10-21 14:29:41 +02:00
Jean-Sébastien Pédron 9d5037344d Initial move to erlang.mk 2015-10-19 12:28:46 +02:00
Michael Klishin f2dc1d75cb Merge branch 'stable' 2015-05-01 00:49:48 +03:00
Michael Klishin 5a87bddf0d Ignore test/.idea 2015-05-01 00:49:21 +03:00
Michael Klishin bd6a283e79 Ignore test/.idea/* 2015-03-26 16:59:28 +03:00
Jean-Sébastien Pédron 92bc2c21d0 Merge branch 'stable' 2015-02-19 18:19:42 +01:00
Jean-Sébastien Pédron 825bf9e580 Convert .hgignore to .gitignore 2015-02-19 17:26:01 +01:00