Cook the bacon in a large sauté pan until crispy. Eat a piece, then chop the rest roughly and set aside.
While the bacon is cooking, chop most of your mushrooms, leaving some nice pretty ones as decoration, or, if they are large, make pretty cross-section slices to decorate the tart.
Sauté the onions in the bacon fat for a minute or three, then add the mushrooms. Turn the heat up to high and cook until you are getting a little browning on the onions and mushrooms, about 8 minutes or so. Turn off the heat and let this cool.